package com.yanqu.road.server.cmd.activity.suitang;

import com.yanqu.road.entity.activity.daomu.config.DaoMuActivityConfig;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.DaoMuPvpProto;
import com.yanqu.road.pb.activity.suitang.SuiTang;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.activity.daomu.DaoMuActivity;
import com.yanqu.road.server.manager.activity.daomu.DaoMuActivityMgr;
import com.yanqu.road.server.manager.activity.daomu.pvp.DaoMuActivityPvp;
import com.yanqu.road.server.manager.activity.suitang.CrossSuiTangMgr;
import com.yanqu.road.server.manager.activity.suitang.activity.CrossSuiTangActivity;
import com.yanqu.road.server.protocol.GameErrorCode;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C2_SUI_TANG_DEBUG, desc = "gm指令调试")
public class CrossSuiTangDebugCmd  extends CrossUnionCommand {

    private int activityId;

    private String code;

    private String param;

    private long playerId;

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        SuiTang.CrossSuiTangDebugReqMsg reqMsg = SuiTang.CrossSuiTangDebugReqMsg.parseFrom(packet.getBytes());
        activityId = reqMsg.getActivityId();
        code = reqMsg.getCode();
        param = reqMsg.getParam();
        playerId = packet.getPlayerId();
        CrossSuiTangActivity activity = CrossSuiTangMgr.getActivity(reqMsg.getActivityId(), groupId);
        if (activity == null) {
            return true;
        }
        activity.debug(playerId, code, param);
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
    }

    @Override
    public void sendData() {

    }
}
